package com.jiangtai.smartbox.bean.mqtt
import com.google.gson.annotations.SerializedName


/**
 * Created by heCunCun on 2021/6/15
 */
data class MqttResponseBean(
    @SerializedName("deviceId")
    val deviceId: String,
    @SerializedName("function")
    val function: String,
    @SerializedName("inputs")
    val inputs: List<Input>,
    @SerializedName("messageId")
    val messageId: String
)

data class Input(
    @SerializedName("name")
    val name: String,
    @SerializedName("value")
    val value: String
)


data class Task(
    @SerializedName("aPageNo")
    val aPageNo: Int,
    @SerializedName("aPageSize")
    val aPageSize: Int,
    @SerializedName("cabinets")
    val cabinets: List<Cabinet>,
    @SerializedName("createBy")
    val createBy: String,
    @SerializedName("createDate")
    val createDate: Long,
    @SerializedName("createDateStr")
    val createDateStr: String,
    @SerializedName("createDateStr2")
    val createDateStr2: String,
    @SerializedName("dbType")
    val dbType: String,
    @SerializedName("endTime")
    val endTime: String,
    @SerializedName("id")
    val id: String,
    @SerializedName("isNewId")
    val isNewId: Boolean,
    @SerializedName("pageNo")
    val pageNo: Int,
    @SerializedName("pageSize")
    val pageSize: Int,
    @SerializedName("personCount")
    val personCount: Int,
    @SerializedName("remarks")
    val remarks: String,
    @SerializedName("startTime")
    val startTime: String,
    @SerializedName("status")
    val status: String,
    @SerializedName("subjectIds")
    val subjectIds: String,
    @SerializedName("subjectNms")
    val subjectNms: String,
    @SerializedName("subjects")
    val subjects: List<Subject>,
    @SerializedName("taskEndTm")
    val taskEndTm: String,
    @SerializedName("taskEndTmStr")
    val taskEndTmStr: String,
    @SerializedName("taskId")
    val taskId: String,
    @SerializedName("taskName")
    val taskName: String,
    @SerializedName("taskNm")
    val taskNm: String,
    @SerializedName("taskStartTm")
    val taskStartTm: String,
    @SerializedName("taskStartTmStr")
    val taskStartTmStr: String,
    @SerializedName("updateBy")
    val updateBy: String,
    @SerializedName("updateDate")
    val updateDate: Long,
    @SerializedName("updateDateStr")
    val updateDateStr: String,
    @SerializedName("updateDateStr2")
    val updateDateStr2: String
)

data class Cabinet(
    @SerializedName("aPageNo")
    val aPageNo: Int,
    @SerializedName("aPageSize")
    val aPageSize: Int,
    @SerializedName("addr")
    val addr: String,
    @SerializedName("cabinetNm")
    val cabinetNm: String,
    @SerializedName("cabinetNo")
    val cabinetNo: String,
    @SerializedName("count")
    val count: Int,
    @SerializedName("currentCount")
    val currentCount: Int,
    @SerializedName("dbType")
    val dbType: String,
    @SerializedName("id")
    val id: String,
    @SerializedName("ip")
    val ip: String,
    @SerializedName("isNewId")
    val isNewId: Boolean,
    @SerializedName("persons")
    val persons: List<Person>,
    @SerializedName("remarks")
    val remarks: String
)

data class Subject(
    @SerializedName("aPageNo")
    val aPageNo: Int,
    @SerializedName("aPageSize")
    val aPageSize: Int,
    @SerializedName("dbType")
    val dbType: String,
    @SerializedName("isNewId")
    val isNewId: Boolean,
    @SerializedName("subjectId")
    val subjectId: String,
    @SerializedName("subjectNm")
    val subjectNm: String
)

data class Person(
    @SerializedName("aPageNo")
    val aPageNo: Int,
    @SerializedName("aPageSize")
    val aPageSize: Int,
    @SerializedName("dbType")
    val dbType: String,
    @SerializedName("isNewId")
    val isNewId: Boolean,
    @SerializedName("personId")
    val personId: String,
    @SerializedName("personNm")
    val personNm: String,
    var cabinetNo:String,
    var cabinetNm:String,
)

data class TaskStateBean(
    @SerializedName("flag")
    val flag: Boolean,
    @SerializedName("messageId")
    val messageId: String
)


